package com.ruoyi.common.constant;


import com.ruoyi.common.CommonEnum;

public enum SRCode implements CommonEnum {
    SUCCESS(0, "成功"),
    ERR_400(400, "请求无效"),
    ERR_401(401, "未授权"),
    ERR_403(403, "禁止访问"),
    ERR_404(404, "请求的资源不存在"),
    ERR_405(405, "请求方法错误"),
    ERR_406(406, "请求编码错误"),
    ERR_500(500, "内部服务器错误"),
    ERR_5001(5001, "验证码不能为空"),
    ERR_5002(5002, "验证码已失效"),
    ERR_5003(5003, "验证码错误"),
    ERR_5004(5004, "用户名或密码错误"),
    ERR_5005(5005, "用户名或密码错误"),
    ERR_5006(5006, "登录失败!");
    private final Integer value;
    private String desc;

    private SRCode(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
